#import "ImageFactory.h"

static CImageFactory* iInstance=Nil;

@implementation CImageFactory
-init
{
	if(self=[super init])
	{
		
		return self;
	}
	return nil;
}

- (void)dealloc 
{
	[super dealloc];
}

+(CImageFactory*)getInstance
{
	@synchronized(self)
	{
		if(!iInstance)
		{
			iInstance=[[CImageFactory alloc] init];
		}
	}
	return iInstance;
	
}
+ (void)Destroy:(CImageFactory*)aImageFactory
{
	@synchronized(self)
	{
		if(aImageFactory)
		{
			[aImageFactory release];
		}
	}
}

-(UIImage*)getUIImage:(NSString*)aImagePath
{
	return [self getUIImageFromPngFile:aImagePath];
}


-(UIImage*)getUIImageFromPngFile:(NSString*)aImagePath
{
	
}
-(CGSize)getImageSize:(NSString*)aImagePath
{
}
@end